﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InfoLab.aspx.cs" Inherits="LIMS.Web.InfoLab" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var se;
        function GetRepeterColor(id) {
            se = id.style.backgroundColor;
            id.style.backgroundColor = '#1E90FF';
        }
        function SetRepeterColor(id) {
            id.style.backgroundColor = se;
        } 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center; width: 800px; margin-left: 50px;">
        <table border="0" cellspacing="0" cellpadding="0" style="width: 770px;">
            <tr>
                <td>
                </td>
                <td style="width: auto; font-weight: bold; color: #000000; font-size: 36px; height: 30;
                    text-align: center">
                    实验室管理
                </td>
            </tr>
            <tr style="font-size: 12pt; color: #000000;">
                <td>
                </td>
                <td style="width: 700px; text-align: left; font-size: 15pt; color: #000000; text-align: left;">
                    <div style="float: left; width: 550px; height: 24px; text-align: center;">
                        <asp:DropDownList ID="ddlOrderDate" runat="server" AutoPostBack="true" Style="width: 240px;
                            font-size: 22px;" OnSelectedIndexChanged="ddlOrderDate_SelectedIndexChanged">
                            <asp:ListItem>请选择预约日期</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td align="center">
                    <div id="mesEmptyError" style="width: 200px; color: Red;" runat="server">
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" style="height: 27px">
                    <br />
                    <asp:Repeater ID="rpLab" runat="server">
                        <HeaderTemplate>
                            <table border="1" width="100%">
                                <tr align="center">
                                    <th>
                                        序号
                                    </th>
                                    <th>
                                        实验室编号
                                    </th>
                                    <th>
                                        预约日期
                                    </th>
                                    <th>
                                        一二节课
                                    </th>
                                    <th>
                                        三四节课
                                    </th>
                                    <th>
                                        五六节课
                                    </th>
                                    <th>
                                        七八节课
                                    </th>
                                    <th>
                                        晚上
                                    </th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr align="center" style='background-color: <%#(Container.ItemIndex%2==0)?"silver;":"#808080"%>'
                                onmouseover="GetRepeterColor(this)" onmouseout="SetRepeterColor(this)">
                                <td>
                                    <%#Container.ItemIndex+1 %>
                                </td>
                                <td>
                                    <%# Eval("labID")%>
                                </td>
                                <td>
                                    <%#Eval("labStatusDate","{0:yyyy-MM-dd}")%>
                                </td>
                                <td>
                                    <%#ConvertBoolToString(Eval("labStatus12"))%>
                                </td>
                                <td>
                                    <%#ConvertBoolToString(Eval("labStatus34"))%>
                                </td>
                                <td>
                                    <%#ConvertBoolToString(Eval("labStatus56"))%>
                                </td>
                                <td>
                                    <%#ConvertBoolToString(Eval("labStatus78"))%>
                                </td>
                                <td>
                                    <%#ConvertBoolToString(Eval("labStatus910"))%>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <br />
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="总记录数:%RecordCount%, 总页数:%PageCount%, 当前为第 %CurrentPageIndex% 页"
                        FirstPageText="<<" LastPageText=">>" LayoutType="Div" NextPageText=">" NumericButtonCount="6"
                        PageIndexBoxType="DropDownList" PageSize="5" PrevPageText="<" ShowNavigationToolTip="true"
                        PagingButtonSpacing="6px" ShowCustomInfoSection="Right" OnPageChanged="AspNetPager1_PageChanged"
                        Font-Size="12px" HorizontalAlign="Center" Width="100%" AlwaysShow="true" CustomInfoSectionWidth="40%">
                    </webdiyer:AspNetPager>
                    <br />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
